package com.solarStruggle.controls

import javax.swing.{JToolBar}
import scala.swing.{Action, Component}
import actions.{Actions}

/**
 * Main toolbar for the application
 */
class MainToolBar(actions: Actions)
extends Component {
  
  override lazy val peer = new JToolBar()
  
  def add(a: Action): Unit = peer.add(a.peer)

  add(actions.newGame)
  add(actions.zoomIn)
  add(actions.zoomOut)
  add(actions.zoomReset)
  
}
